﻿
@{
    ViewBag.Title = "Index";
}
<br /><br /><br /><br />
<div align="center">
    <img src="~/Content/images/toques.png">
    <br/>
    <table class="table table-bordered">
        <thead>
            <tr>
                <th class="alert-success">Id</th>
                <th class="alert-success">Codigo Empresa</th>
                <th class="alert-success">Interno</th>
                <th class="alert-success">Darsena</th>
                <th class="alert-success">Codigo Destino</th>
                <th class="alert-success">Fecha y Hora</th>
                <th class="alert-success">Acciones</th>
            </tr>
        </thead>
        <tbody class="table-hover">
            @foreach (Model.Darsena item in Model)
            {
                <tr>
                    <td>@item.id</td>
                    <td><strong> @item.empresa.nombre</strong> (@item.empresa.codigo)</td>
                    <td>@item.interno</td>
                    <td>@item.nroDarsena</td>
                    <td>@item.localidad.nombre</td>

                    <td>@item.hora.ToString("dd MMM yyyy HH:mm:ss") </td>
                    <td>
                        <a href="@Url.Action("BorrarDarsena", "Darsena", new { id=item.id  })">Borrar</a>
                        <a href="@Url.Action("EditarDarsena", "Darsena", new { id=item.id  })">Editar</a>
                    </td>
                </tr>
            }
        </tbody>
    </table>
    <a href="@Url.Action("AgregarDarsena", "Darsena")"><button type="button" class="btn btn-success">Agregar nuevo Toque</button></a>

    <br /><br /><br /><br />
</div>